package com.itheima.d2_collection_traverse;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo3 {

    public static void main(String[] args) {
        Collection<String> c =new ArrayList<>();
        c.add("aaa");
        c.add("bbb");


        c.forEach(System.out::println);//lambda表达式,实现遍历
    }
}
